package com.ch.shopping.service.impl;

import com.ch.shopping.dao.UserDao;
import com.ch.shopping.pojo.User;
import com.ch.shopping.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author AuthorName
 * @create 2020-04-13 9:23
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User queryUserById(Integer id) {
        return userDao.queryUserById(id);
    }
    @Override
    public boolean loginUser(User user) {
        return true;
    }

}
